import requests

import api


class ApiLogin:
    # 初始化
    def __init__(self):
        # 登录url
        self.url_login = api.host + "/api/account/v4/users/login/"

    def api_login(self,mobile,password):
        # 1.参数数据
        data = {"mobile": mobile, "password": password, "wechat_key": "", "app_id": 2000}
        # 2.调用post方法
        return requests.post(url=self.url_login, json=data,verify=False)
